package com.example.community.mapper;

import com.example.community.enity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;;

import java.util.List;

@Repository
@Mapper
public interface BookMapper {
    public List<Book> getBookList(int page,int size);
    public int deleteBook( int bookID);
    public int addBook(Book book);
    public Book findById(int bookID);
    public int updateBook(Book book);
}
